package com.xszx.mapper;

import com.xszx.entity.TDept;
import com.xszx.entity.TUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 34129
* @description 针对表【t_user】的数据库操作Mapper
* @createDate 2024-01-08 20:40:47
* @Entity com.xszx.entity.TUser
*/
@Mapper
public interface TUserMapper extends BaseMapper<TUser> {

    TUser isOnly(@Param("phone") String phone, @Param("idcard") String idcard);

    TUser isAccount(String account);

    void addUser(TUser tUser2);
    List<TUser> selectUser();

    TUser getUserByAccount(String account);

    void updateUser(TUser tUser);

    void deleteUserById(int i);

    TDept getUserDeptByDid(long did);

    List<TUser> selectUserByCheck(TUser tUser);
}




